#include "system.h"
#include <string.h>
#include <stdint.h>
#include "Delay.h"

#define WaterLight_SPEED_VALUE 0x00c9d2ff


void delay(int interval)
{
	int i;
	for(i=1;i<=interval;i++);
}


int main()
{ 
	//interrupt initial

	NVIC_CTRL_ADDR = 0xf;

	
	//WATERLIGHT
	SetWaterLightSpeed(WaterLight_SPEED_VALUE);
	SPIstart();

	while(1){	
		

	
	SPIwrite('C', 1);
	
	SPIwrite('O', 1);
	
	SPIwrite('R', 1);
	
	SPIwrite('T', 1);
	
	SPIwrite('E', 1);
	
	SPIwrite('X', 1);
	
	SPIwrite('M', 1);
	
	SPIwrite('0', 1);
		
	Delay_s(1);
}
}
